local f=...
require 'mime'
local base64_wrap = ltn12.filter.chain(mime.encode("base64"), mime.wrap("base64"))
local fp=io.open(f,'rb')
local all=fp:read("*a")
local content=mime.b64(all,nil)
assert(all==mime.unb64(content,nil))
--local content=base64_wrap(fp:read("*a"))
print("[[")
print(content)
print("]]")
fp:close()